    {if $smarty.get.act eq "edit_lang"}
    	{include file="BgcmsMultiLanguage/edit_multilanguage.tpl"}
    {elseif $smarty.get.act eq "new_lang"}
    	{include file="BgcmsMultiLanguage/create.tpl"}
  	{else}
	<div class="wrap">
		<div id="ajaxResponse1" class="ajaxResponse" {if $smarty.cookies.message != NULL}style="display:block"{/if}>{$smarty.cookies.message}</div>
        <h2>{TranslateTag}B_LABEL_LANGUAGE_MANAGEMENT{/TranslateTag}</h2>
        <p>
            <a href="?{$smarty.server.QUERY_STRING}&act=new_lang">
            	<img src="../view/admin/images/object_create.png" alt="Create" />
            </a>
        </p>
    	<table class="widefat" width="100%" cellspacing="2" cellpadding="5">
        <thead>
		<tr>
			<th width="20%" align="left" valign="middle">
            	Key Language
            </th>
			<th width="20%" align="left" valign="middle">
            	Name Language
            </th>
            <th width="20%" style="text-align:center" valign="middle">
            	Flags
            </th>
            <th width="20%" style="text-align:center" valign="middle">
            	Active
            </th>
            <th colspan="2" style="text-align:center" valign="middle">
            	{TranslateTag}B_LABEL_ACTION{/TranslateTag}
            </th>
		</tr>
        </thead>
        <tbody id="listmulti">
			{foreach name=lang from=$ALL_LANGUAGE item=item}
				<tr id="rowlang_{$item->key_lang}" class="{cycle values=,alternate}">
					<td align="left">{$item->key_lang}</td>
					<td align="left">
						{$item->name_lang}	
					</td>
                    <td align="center">
					{if $item->flags != NULL}	
                        {$item->img}
					{/if}
                    </td>
                    <td align="center">
                    {if $item->active eq '1'}
						<img src="../view/admin/images/button_ok.png" alt="OK" />
					{else}
						<img src="../view/admin/images/button_cancel.png" alt="cancel" />	
                    {/if}    	
					</td>
                    <td>
						<a href="?module={$smarty.get.module}&sub=lang&act=edit_lang&id={$item->lang_id}" class='edit'><img src="../view/admin/images/object_edit.png" alt="Edit" /></a>
					</td>
					<td>
						<a href="javascript:void(0);" onClick="onDeleteLanguage('?{$smarty.server.QUERY_STRING}', '{$item->key_lang}')" class='delete'>
                        	<img src="../view/admin/images/object_delete.png" alt="Delete" />
                        </a>
					</td>
				</tr>
			{/foreach}
		</tbody>
		</table>
		<p>
            <a href="?{$smarty.server.QUERY_STRING}&act=new_lang">
            	<img src="../view/admin/images/object_create.png" alt="Create" />
            </a>
        </p>
	</div>
    {/if}
